{* Smarty *}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{$HEADER} - Панель администрирования - {$smarty.const.NAME_SITE}</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="/min/?f=/templates/admin/css/style.css,/templates/admin/css/ui/smoothness/jquery-ui-1.8.16.custom.css,/templates/admin/js/imgareaselect/imgareaselect-default.css,/templates/admin/js/elfinder/css/elfinder.css,/templates/admin/js/elrte/css/elrte.min.css" type="text/css" />
<script type="text/javascript" src="/min/index.php?f=/templates/admin/js/jquery-1.6.2.min.js,/templates/admin/js/jquery.cookie.js,/templates/admin/js/ui/jquery-ui-1.8.16.custom.min.js,/templates/admin/js/imgareaselect/jquery.imgareaselect.js,/templates/admin/js/functions.js,/templates/admin/js/google.translate.js,/templates/admin/js/default.js"></script>
<script type="text/javascript" src="/min/index.php?f=/templates/admin/js/elrte/js/elrte.full.js,/templates/admin/js/elrte/js/i18n/elrte.ru.js,/templates/admin/js/elfinder/js/elfinder.min.js,/templates/admin/js/elfinder/js/i18n/elfinder.ru.js"></script>
</head>
<body{if $smarty.get.m eq "modules" || $smarty.get.m eq "templates"} style="background:white;"{/if}>
<div id="dialog_alert_delete_file" style="display:none;"></div>
<ul id="notifications"></ul>
<!-- TOP BAR -->
<div id="bar">
  <a href="/admin/" class="logo"><span>КМ/Ч</span> ::: CMS</a>
  <ul class="sections_adm">
    <li><a href="?m=content" class="ui_wo_buttons ui-state-default ui-corner-all{if $smarty.get.m eq "content" || $smarty.get.m eq ""} ui-state-focus{/if}"><span class="ui-icon ui-icon-document"></span>{if $smarty.get.m eq "content" || $smarty.get.m eq ""}<strong>Контент</strong>{else}Контент{/if}</a></li>
    <li><a href="?m=structure" class="ui_wo_buttons ui-state-default ui-corner-all{if $smarty.get.m eq "structure"} ui-state-focus{/if}"><span class="ui-icon ui-icon-folder-collapsed"></span>{if $smarty.get.m eq "structure"}<strong>Структура</strong>{else}Структура{/if}</a></li>
    <li><a href="?m=modules" class="ui_wo_buttons ui-state-default ui-corner-all{if $smarty.get.m eq "modules"} ui-state-focus{/if}"><span class="ui-icon ui-icon-script"></span>{if $smarty.get.m eq "modules"}<strong>Модули</strong>{else}Модули{/if}</a></li>
    <li><a href="?m=templates" class="ui_wo_buttons ui-state-default ui-corner-all{if $smarty.get.m eq "templates"} ui-state-focus{/if}"><span class="ui-icon ui-icon-script"></span>{if $smarty.get.m eq "templates"}<strong>Темплейты</strong>{else}Темплейты{/if}</a></li>
    <li><a href="?m=configuration" class="ui_wo_buttons ui-state-default ui-corner-all{if $smarty.get.m eq "configuration"} ui-state-focus{/if}"><span class="ui-icon ui-icon-gear"></span>{if $smarty.get.m eq "configuration"}<strong>Конфигурация</strong>{else}Конфигурация{/if}</a></li>
  </ul>
  <div class="logout"><a href="?act=logout" class="ui_wo_buttons ui-state-default ui-corner-all"><span class="ui-icon ui-icon-power"></span>выйти</a></div>
</div>
<!-- END TOP BAR -->

<table id="conteiner">
  <tr>
    {if $LEFT_MENU}
    <!-- LEFT -->
    <td id="left">
     <script type="text/javascript" src="/templates/admin/js/jquery-contained-sticky-scroll.js"></script>
     <div id="left_menu_fixed">
      {if $LEFT_MENU}{include file='left_menu.tpl'}<div class="hrline"></div>{if $smarty.get.m neq "configuration"}<div style="font-size:10px;padding-top:15px;">(m) - отображается в главном меню</div>{/if}{/if}      
      {if $LEFT_MENU_CATALOG}<div style="margin-top:10px;padding:10px 0 15px 0;border-top:1px #ccc solid;">{include file='left_menu_catalog.tpl'}</div>{/if}
     </div>
     <div class="hrline"></div>
     <script type="text/javascript">
	  $(function(){	
		  var scroll = new DivFloat("left_menu_fixed");
		  scroll.doOnScroll();
	  });
	  </script> 
    </td>
    <!-- END LEFT -->
    {/if}    
    <!-- CONTENT -->
    <td id="main_block"><div class="fixed-bar-page">{$ACTION}
      <h1 class="titlepage">{$HEADER}</h1>
    </div>
    <div class="titlepage_height"></div>    
    <script type="text/javascript">
    $(function(){
		var title_bar = function()
		{
			$(".fixed-bar-page").css({
				width : $("#main_block").width(),			
				position : "fixed"	
			});
			$(".titlepage_height").css({
				height:($(".titlepage").height()+35)
			});
		};
		title_bar();
		$(window).bind("resize", function(){
			title_bar();
		});
	});
    </script>    
    {$OUT}</td>
    <!-- END CONTENT -->
  </tr>
</table>
</body>
</html>
